<%-- 
    Document   : home
    Created on : Apr 10, 2012, 9:52:48 AM
    Author     : Yudi Retanto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="../header.jsp"></jsp:include>
    <!-- Container -->
    <div id="container">
        <div class="shell">
            <!-- Main -->
            <div id="main">
                <div class="cl">&nbsp;</div>
                <!-- Content -->
                <div id="content-unit-add">
                    <!-- Box -->
                    <div class="box">
                        <!-- Box Head -->
                        <div class="box-head">
                            <h2>Edit Data Surveilans - ${data.getTanggal_str()} - ${data.getNama_penyakit()}</h2>
                        </div>
                        <!-- End Box Head -->
                        <c:choose>
                            <c:when test="${sessionScope.role ==1}">
                                <form action="./admin?action=edit_data" method="post">
                            </c:when>
                            <c:when test="${sessionScope.role ==2}">
                                <form action="./unit?action=edit" method="post">
                            </c:when>
                        </c:choose>
                            <!-- Form -->
                            <div class="form">
                                <div class="table">
                                    <label>Data</label>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <th rowspan="2">Jenis Penyakit</th>
                                            <th colspan="12" style="text-align: center">Golongan Umur (Tahun)</th>
                                        </tr>
                                        <tr>
                                            <th>0-7 hr</th>
                                            <th>8-28 hr</th>
                                            <th>< 1</th>
                                            <th>1-4</th>
                                            <th>5-9</th>
                                            <th>10-14</th>
                                            <th>15-19</th>
                                            <th>20-44</th>
                                            <th>45-54</th>
                                            <th>55-59</th>
                                            <th>60-69</th>
                                            <th>70+</th>
                                        </tr>
                                        <tr>
                                            <td>${data.getNama_penyakit()}</td>
                                            <td>
                                                <input type="hidden" name="id_unit" value="${data.getId_unit()}"/>
                                                <input type="text" class="field size4" name="pen[1]" value="${data.getRange1()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[2]" value="${data.getRange2()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[3]" value="${data.getRange3()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[4]" value="${data.getRange4()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[5]" value="${data.getRange5()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[6]" value="${data.getRange6()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[7]" value="${data.getRange7()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[8]" value="${data.getRange8()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[9]" value="${data.getRange9()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[10]" value="${data.getRange11()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[11]" value="${data.getRange11()}"/>
                                            </td>
                                            <td>
                                                <input type="text" class="field size4" name="pen[12]" value="${data.getRange12()}"/>
                                                <input type="hidden" name="pen" value="12"/>
                                                <input type="hidden" name="id" value="${data.getId()}"/>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <!-- End Form -->
                            <!-- Form Buttons -->
                            <div class="buttons">
                                <input type="submit" class="button" value="submit" />
                            </div>
                            <!-- End Form Buttons -->
                        </form>
                    </div>
                    <!-- End Box -->
                </div>
                <!-- End Content -->
                <div class="cl">&nbsp;</div>			
            </div>
            <!-- Main -->
        </div>
    </div>
    <!-- End Container -->
<jsp:include page="../footer.jsp"></jsp:include>